import request from '@/utils/request'

// 查询商品销售退货列表
export function listResale(query) {
  return request({
    url: '/resale/resale/list',
    method: 'get',
    params: query
  })
}

// 查询商品销售退货详细
export function getResale(id) {
  return request({
    url: '/resale/resale/' + id,
    method: 'get'
  })
}

// 新增商品销售退货
export function addResale(data) {
  return request({
    url: '/resale/resale',
    method: 'post',
    data: data
  })
}

// 修改商品销售退货
export function updateResale(data) {
  return request({
    url: '/resale/resale',
    method: 'put',
    data: data
  })
}

// 删除商品销售退货
export function delResale(id) {
  return request({
    url: '/resale/resale/' + id,
    method: 'delete'
  })
}
